package com.wushi.springcloud.provider.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author wushumin
 * @version 1.0
 * @date 2019-09-23 9:47
 */
@RestController
public class HelloController {
    @GetMapping("/hello")
    public String index(@RequestParam String name){
        System.out.printf("=====> invoke hello: %s",name);
        return "hello:" +name;
    }

}
